package com.umpay.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
/**
 * @ClassName: StaticConfigurerAdapter  
 * @Description: 静态资源直接访问  
 * @author zhangtao  
 * @date May 30, 2018
 */
@Configuration
public class StaticConfigurerAdapter extends WebMvcConfigurerAdapter
{	
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry)
    {
        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
        super.addResourceHandlers(registry);
    }
}
